package com.maidshop.animation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maidshop.animation.domain.Animation;
import com.maidshop.animation.domain.dto.AnimationDto;
import com.maidshop.animation.domain.dto.FileDto;
import com.maidshop.animation.domain.vo.AnimationVo;
import com.maidshop.elasticsearch.domain.AnimationEs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author 22384
* @description 针对表【a_animation】的数据库操作Mapper
* @createDate 2024-10-20 20:51:10
* @Entity generator.domain.Animation
*/
@Repository
public interface AnimationMapper extends BaseMapper<Animation> {

    List<AnimationDto> listAll(AnimationVo vo);

    int insertNewAnimation(Animation animation);

    int updateAnimation(Animation animation);

    AnimationDto selectOneAnimation(Long id);

    int insertCover(@Param("animationId") String animationId, @Param("fileId") String fileId);

    int deleteAnimation(Long id);

    int deleteCover(Long id);

    FileDto selectCover(Long id);

    List<AnimationEs> findAllAnimationEs();
}




